package cn.changshengjue.dakong.config;

import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.inventory.ItemStack;

import cn.changshengjue.dakong.main;

public class cfg {
	public static String COMMANDS_EXA;
	public static String COMMANDS_RELOAD;

	public static String MSG_PLUGIN;
	public static String MSG_RELOAD;

	public static String MSG_NODAMAGEON;
	public static String MSG_SET;
	public static String MSG_SET_1;
	public static String MSG_STARTTRUE;
	public static String MSG_STARTFALSE;
	public static String MSG_FB;
	public static String MSG_KNULL;
	public static String MSG_KTYPE;
	public static String MSG_KLEVEL;
	public static String MSG_VITALITY;
	public static String MSG_SUCCESS;
	public static String MSG_FAIL;
	public static String MSG_FAIL_1;
	public static String MSG_TAKEFB;
	public static String MSG_TAKEFB_1;
	public static String MSG_GIVE_1;
	public static String MSG_GIVE_2;
	public static String MSG_GIVE_3;
	public static String MSG_GIVE_4;
	public static String MSG_NOTESTONE;
	public static void loadConfig() {
		FileConfiguration config = main.getInstance().getConfig();

		COMMANDS_EXA = config.getString("commands.exa").replace("&", "§");
		COMMANDS_RELOAD = config.getString("commands.reload").replace("&", "§");
		MSG_PLUGIN = config.getString("msg.plugin").replace("&", "§");
		MSG_RELOAD = config.getString("msg.reload").replace("&", "§");
		MSG_NODAMAGEON = config.getString("msg.noDamageOn").replace("&", "§");
		MSG_SET = config.getString("msg.set").replace("&", "§");
		MSG_SET_1 = config.getString("msg.set_1").replace("&", "§");
		MSG_STARTTRUE = config.getString("msg.starttrue").replace("&", "§");
		MSG_STARTFALSE = config.getString("msg.startfalse").replace("&", "§");
		MSG_FB = config.getString("msg.fb").replace("&", "§");

		MSG_KNULL = config.getString("msg.knull").replace("&", "§");
		MSG_KTYPE = config.getString("msg.ktype").replace("&", "§");
		MSG_KLEVEL = config.getString("msg.klevel").replace("&", "§");
		MSG_VITALITY = config.getString("msg.vitality").replace("&", "§");
		MSG_SUCCESS = config.getString("msg.success").replace("&", "§");
		MSG_FAIL = config.getString("msg.fail").replace("&", "§");
		MSG_FAIL_1 = config.getString("msg.fail_1").replace("&", "§");
		MSG_TAKEFB = config.getString("msg.takefb").replace("&", "§");
		MSG_TAKEFB_1 = config.getString("msg.takefb_1").replace("&", "§");

		MSG_GIVE_1 = config.getString("msg.give_1").replace("&", "§");
		MSG_GIVE_2 = config.getString("msg.give_2").replace("&", "§");
		MSG_GIVE_3 = config.getString("msg.give_3").replace("&", "§");
		MSG_GIVE_4 = config.getString("msg.give_4").replace("&", "§");
		MSG_NOTESTONE = config.getString("msg.noteStone").replace("&", "§");
	}
}
